// remove-tlang-and-random-ip.js
function randomIP() {
  return Array(4)
    .fill(0)
    .map(() => Math.floor(Math.random() * 256))
    .join(".");
}

let url = $request.url;

// 替换 ip=0.0.0.0
url = url.replace(/ip=\d+\.\d+\.\d+\.\d+/, "ip=" + randomIP());


$done({ url });
